package com.javacv.plus.extensions.video.steps;

import com.javacv.plus.core.processor.ProcessorContext;
import com.javacv.plus.core.processor.ProcessorStep;
import com.javacv.plus.extensions.video.VideoProcessor;
import com.javacv.plus.extensions.video.VideoResult;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class FrameRateStep implements ProcessorStep<VideoProcessor, VideoResult> {
    
    private final double fps;
    
    public FrameRateStep(double fps) {
        this.fps = fps;
    }
    
    @Override
    public VideoResult execute(VideoProcessor processor, ProcessorContext context) throws Exception {
        log.info("设置视频帧率: {} fps", fps);
        return null;
    }
    
    @Override
    public String getStepName() {
        return "FrameRate";
    }
}